<?php
// +----------------------------------------------------------------------
// | 中联致远服务端框架
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://www.zhongliansoft.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: tony <tanyu@zhongliansoft.com>
// +----------------------------------------------------------------------

namespace app\Manage\controller;

use app\common\controller\Manage;
use app\common\model\WxDsBill as WxDsBillModel;
use app\common\model\WxFdsBill as WxFdsBillModel;
use think\facade\Request;

class WxBill extends Manage
{

    /**
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function indexds()
    {
        if(Request::isAjax())
        {
            $wxDsBillModel = new WxDsBillModel();
            return $wxDsBillModel->tableData(input('param.'));
        }
        return $this->fetch();
    }
    
    /**
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function indexfds()
    {
        if(Request::isAjax())
        {
            $wxFdsBillModel = new WxFdsBillModel();
            return $wxFdsBillModel->tableData(input('param.'));
        }
        return $this->fetch();
    }
}